<div class="page-content" data-page="history-page">
	<div class="page-header">
        <h1>
            风险管理
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
               回执文件打包
            </small>
        </h1>
    </div>
    <div>
    <form class="form-horizontal" id="pack-form" role="form">
        <div class="row">
        	<div class="col-sm-9" >
                <label class="col-sm-3 control-label no-padding-right" for="checkDate">核查时间 </label>
                <div class="col-sm-9">
                    <div class="input-group col-xs-10 col-sm-5">
                        <input class="form-control date-picker" id="checkDatePack" type="text"
                               data-date-format="yyyy-mm" name="hcsj"/>
                                    <span class="input-group-addon">
                                        <i class="fa fa-calendar bigger-110"></i>
                                    </span>
                    </div>
                </div>
            </div>
            <div class="col-sm-3" >
            	<button type="button" id="button-pack" class="btn btn-sm btn-success">
                        文件打包
                        <i class="ace-icon fa fa-briefcase icon-on-right bigger-110"></i>
                    </button>
            </div>
        </div>
    </form>
    </div>
</div>
<script>
$('.date-picker').datepicker({
    startView: 1,
    minViewMode: 1,
    maxViewMode: 1,
    autoclose: true,
    language: 'zh-CN',
    todayHighlight: true
}).next().on(ace.click_event, function () {
	$(this).prev().focus();
});
$("#button-pack").click(function(e){
	var form = $("#pack-form");
	$.request("../util/pack",{
		data:form.serializeArray(),
		callback:function(json){
			bootbox.dialog({
                title:"消息",
                message: json.message,
                closeButton:true,
                buttons:
                {
                    "success" :
                    {
                        "label" : "<i class='ace-icon fa fa-check'></i> 确定!",
                        "className" : "btn-sm btn-success",
                        "callback": function() {
                            
                        }
                    }
                }
            });
		}
	})
})
</script>